{include file="header.html"}
<script type="text/javascript">
$(function(){
    $('#operator_form').validate({
    	 errorPlacement: function(error, element){
             $(element).next('.noerror').hide();          
             $(element).after(error);
         },
         success       : function(element){
         	 $(element).next('.noerror').show();  
         	 $(element).remove();
         	
         },
        rules : {  
        	h_short_name : {
                required : true
            },
            h_name : {
                required : true
            },
            h_order :{
                required : true,
             
            },
            h_linkman_tel    :{
            	required : true,
            	number : true
            },
            h_address:{
            	required : true
            },
          
            h_linkman:{
            	required : true
            },
            h_wm_type:{
            	required : true
            }
  
            
  
        },
        messages : {
        	h_short_name : {
                required : '运程简称必填'
            },
            h_name : {
                required : '运程名称必填'
            },
            h_order : {
            	required : '运程顺序必填',
             
            },
            h_linkman_tel    : {
            	required : '联系人电话必填',
            	number : '必须为数字'
            },
            h_address : {
            	required : '地址必填'
            },
            h_linkman : {
            	required : '运程联系人必填'
            },
            h_wm_type : {
            	required : '运程类型必填'
            }
        }
    });
    
});

</script>

<style>
#form11 th,#operator_form th {
	text-align: right;
	padding-right: 15px;
}
</style>




<div id="rightTop">
	<p>运程定义</p>
	<ul class="subnav">
		<li><a class="btn1" href="index.php?app=haul_define">{$lang.manage}</a>
		</li>

		<!-- {if $haul_define.h_tid}} -->

		<li><a class="btn1" href="index.php?app=haul_define&amp;act=add">{$lang.add}</a>
		</li>
		<li><span>编辑</span>
		</li>
		<!-- {else} -->
		<li><span>新建</span></li>
		<!-- {/if} -->
	</ul>
</div>

<div class="info">
	<form method="post" enctype="multipart/form-data" id="operator_form">
		<table class="infoTable">

		 <tr>
                <th class="paddingT15">
                    <b style="color: #ff0000">*&nbsp;</b>运单类型:</th>
                <td class="paddingT15 wordSpacing5">
                  <select   class="infoTableInput" name="h_wm_type" id="h_wm_type">{html_options options=$status selected=$haul_define.h_wm_type}</select>
	
                               </td>
            </tr>
        

			<tr>
				<th class="paddingT15"><b style="color: #ff0000">*&nbsp;</b>{$lang.h_short_name}:</th>
				<td class="paddingT15 wordSpacing5"><input
				style="float: left;"	class="infoTableInput2" id="h_short_name" type="text"
					name="h_short_name" value="{$haul_define.h_short_name}" /> <label
					for="wm_carrier" class="noerror">运程简称必填</label></td>
			</tr>

			<tr>
				<th class="paddingT15"><b style="color: #ff0000">*&nbsp;</b>
					{$lang.h_name}:</th>
				<td class="paddingT15 wordSpacing5"><input
					style="float: left;" class="infoTableInput2" id="h_name" type="text" name="h_name"
					value="{$haul_define.h_name}" /> <label for="wm_carrier"
					class="noerror">运程名称必填</label></td>
			</tr>

			<tr>
				<th class="paddingT15"><b style="color: #ff0000">*&nbsp;</b>{$lang.h_order}:</th>
				<td class="paddingT15 wordSpacing5"><input class="sort_order"
				style="float: left;"	id="h_order" type="text" name="h_order"
					value="{$haul_define.h_order}" /> <label for="wm_carrier"
					class="noerror">运程顺序必填</label></td>
			</tr>

			<tr>
				<th class="paddingT15"><b style="color: #ff0000">*&nbsp;</b>{$lang.h_address}:</th>
				<td class="paddingT15 wordSpacing5"><input class="sort_order"
				style="float: left;"	id="h_address" type="text" name="h_address"
					value="{$haul_define.h_address}" /> <label for="wm_carrier"
					class="noerror">地址必填</label></td>
			</tr>

			<tr>
				<th class="paddingT15"><b style="color: #ff0000">*&nbsp;</b>
					{$lang.h_linkman}:</th>
				<td class="paddingT15 wordSpacing5"><input class="sort_order"
				style="float: left;"	id="h_linkman" type="text" name="h_linkman"
					value="{$haul_define.h_linkman}" /> <label for="wm_carrier"
					class="noerror">运程联系人必填</label></td>
			</tr>

			<tr>
				<th class="paddingT15"><b style="color: #ff0000">*&nbsp;</b>
					{$lang.h_linkman_tel}:</th>
				<td class="paddingT15 wordSpacing5"><input class="sort_order"
			style="float: left;"		id="h_linkman_tel" type="text" name="h_linkman_tel"
					value="{$haul_define.h_linkman_tel}" /> <label for="wm_carrier"
					class="noerror">联系人电话必填</label></td>
			</tr>



			<tr>
				<th class="paddingT15"><b style="color: #ff0000">*&nbsp;</b>确认类型:</th>
				<td class="paddingT15 wordSpacing5"><select
					class="infoTableInput" name="h_type" id="h_type">{html_options options=$typelist selected=$haul_define.h_type}
				</select>
			<tr style="display: none">
				<th class="paddingT15">{$lang.h_required}:</th>

			</tr>






			<tr>
				<th></th>
				<td class="ptb20"><input style="float: left;" class="formbtn" type="submit"
					name="Submit" value="{$lang.submit}" /></td>
			</tr>
		</table>
	</form>
</div>



<form method="post" enctype="multipart/form-data"
	action="index.php?app=waybill&act=subadd" style="min-height: 50px;"
	id="form11">
	
	
 <section class="section_maeginstyle" id="highchart" style="margin-top:70px;">
    <article class="module width_full" style="padding:0 0 20px 0;margin:0;width:100%">
	
	
	<div id="rightTop">
		<p>运程采集信息</p>
		<ul class="subnav">
			<li><span>{$lang.manage}</span></li>
			<li><a class="btn1" href="index.php?app=haul_define&amp;act=add_haul_define_collect&amp;id={$haul_define.h_tid}">{$lang.add}</a>
			</li>
		</ul>
	</div>
	<div class="tdare">
		



		<table width="100%" cellspacing="0" class="dataTable">
			<!--{if $haul_define_collect}-->
			<tr class="tatr1">
				<td width="20" class="firstCell"><input type="checkbox"
					class="checkall" /></td>
				<td>采集信息类别</td>
				<td>采集信息描述</td>


				<td style="text-align: center; width: 100px">{$lang.handler}</td>
			</tr>
			<!--{/if}-->
			<!--{foreach from=$haul_define_collect item=s}-->
			<tr class="tatr2">
				<td class="firstCell"><input type="checkbox" class="checkitem"
					value="{$s.hc_tid}" />
				</td>
				
				
				
				<!--{if $s.h_collect_type==0}-->
			<td>扫描</td>

			<!--{/if}-->
				<!--{if  $s.h_collect_type==1}-->
			<td>输入</td>

			<!--{/if}-->
				<!--{if $s.h_collect_type==2}-->
			<td>数字输入</td>

			<!--{/if}-->
						<!--{if $s.h_collect_type==3}-->
			<td>拍照</td>

			<!--{/if}-->
				
						<!--{if $s.h_collect_type==4}-->
			<td>录音</td>

			<!--{/if}-->
				
				
				
				<td>{$s.h_collect_des}</td>

				<td style="text-align: center;"><a
					href="index.php?app=haul_define&amp;act=edit_haul_define_collect&amp;id={$s.hc_tid}">{$lang.edit}</a>
					| <a
					href="javascript:drop_confirm('{$lang.drop_confirm}', 'index.php?app=haul_define&amp;act=drop_haul_define_collect&amp;id={$s.hc_tid}');">{$lang.drop}</a>
				</td>

			</tr>
			<!--{foreachelse}-->
			<tr class="no_data">
				<td colspan="7">{$lang.no_data}</td>
			</tr>
			<!--{/foreach}-->
		</table>


	<!--{if $haul_define_collect}-->
	<div id="dataFuncs">
		<div class="pageLinks">{include file=page.bottom.html}</div>
		<div id="batchAction" class="left paddingT15">
			&nbsp;&nbsp;
			 <input class="formbtn batchButton" type="button"
				value="{$lang.drop}" name="id" uri="index.php?app=haul_define&act=drop_haul_define_collect"
				presubmit="confirm('{$lang.drop_confirm}');" /> &nbsp;&nbsp;
			<!--<input class="formbtn batchButton" type="button" value="lang.update_order" name="id" presubmit="updateOrder(this);" />-->
		</div>
	</div>
	<div class="clear"></div>
	<!--{/if}-->


	
	</div>
	
	
	
	<style>
.infoTable p {
	display: inline-block;
	width: 100px;
}

.dataTable td {
	font-size: 12px;
}
</style>
</form>


{include file="footer.html"}
